package request

import (
	"yundian/internel/app/models/automate"
	"yundian/internel/app/models/bulletin"
	"yundian/internel/app/models/coupon"
	"yundian/internel/app/models/devices"
	"yundian/internel/app/models/goods"
	"yundian/internel/app/models/placemodel"
	"yundian/internel/app/models/reports"
	"yundian/internel/app/models/room"
	"yundian/internel/app/models/usersteward"
)

type GetAutomatePdPasswordReq struct {
	DeviceSn string `json:"deviceSn" form:"deviceSn"`

	IsAdmin     uint8
	LoginUserId int
}

type GetCashMoneyReq struct {
	UserId int `json:"userId" form:"userId"`
}

type DrawDeviceDiscountsReq map[string]string

//type DrawDeviceDiscountsReq struct {
//	DeviceSn string `json:"deviceSn"`
//	Date     string `json:"date"`
//	Sing     string `json:"sing"`
//}

// SetLoginUserPasswordReq 修改登录用户密码
type SetLoginUserPasswordReq struct {
	OldPassword string `json:"oldPassword" form:"oldPassword"`
	Password    string `json:"password" form:"password"`
	LoginUserId int
	IsAdmin     uint8
}

// GetMembersListReq 会员列表
type GetMembersListReq struct {
	LoginUserId int `json:"loginUserId" form:"loginUserId"`
	IsAdmin     uint8
	Phone       string `json:"phone" form:"phone"`
}

// GetMembersListRes 会员列表
type GetMembersListRes struct {
	Id    int    `gorm:"column:id" json:"id"`
	Phone string `gorm:"column:phone" json:"phone"`
}

// StStaffListReq 员工列表查询条件
type StStaffListReq struct {
	BaseListReq
	LoginUserId int `json:"loginUserId" form:"loginUserId"`
	IsAdmin     uint8
	PlaceId     int    `json:"placeId" form:"placeId"`
	UserId      int    `json:"userId" form:"userId"`
	StaffName   string `json:"staffName" form:"staffName"`
	Phone       string `json:"phone" form:"phone"`
	ParentId    int
}

type StStaffListRes struct {
	usersteward.StUserStaff
	ParentName string `gorm:"column:parent_name" json:"parentName"`
}

type WebAppLoginBindReq struct {
	LoginUserId int    `json:"loginUserId" form:"loginUserId"`
	Openid      string `json:"openid" form:"openid"`
}

// NotificationListReq 通知服务列表查询条件
type NotificationListReq struct {
	BaseListReq
	Id          int `json:"id" form:"id"`
	LoginUserId int `json:"loginUserId" form:"loginUserId"`
	PlaceId     int `json:"placeId" form:"placeId"`
	StaffId     int `json:"staffId" form:"staffId"`
	IsAdmin     uint8
	Status      uint8   `json:"status" form:"status"`
	Type        uint8   `json:"type" form:"type"`
	TypeList    []uint8 `json:"typeList" form:"typeList"`
	StartTime   string  `json:"startTime" form:"startTime"`
	EndTime     string  `json:"endTime" form:"endTime"`
	Room        string  `json:"room" form:"room"`
	UserName    string  `json:"userName" form:"userName"`
	Phone       string  `json:"phone" form:"phone"`
	MemberId    int     `json:"memberId" form:"member_id"` //会员ID
	ParentId    int
}

// GrantServiceCommentAwardReq 通知服务列表查询条件
type GrantServiceCommentAwardReq struct {
	CommentId   int `json:"commentId" form:"commentId"`
	LoginUserId int `json:"loginUserId" form:"loginUserId"`
	IsAdmin     uint8
}

// ServiceAutomateReplenishListRes 补货服务列表
type ServiceAutomateReplenishListRes struct {
	Status     uint8  `gorm:"column:status" json:"status"`
	Id         int    `gorm:"column:id" json:"id"`
	UserId     int    `gorm:"column:user_id" json:"userId"`
	PlaceId    int    `gorm:"column:place_id" json:"placeId"`
	Info       string `gorm:"column:info" json:"info"`
	PlaceRoom  string `gorm:"column:place_room" json:"placeRoom"`
	PlaceName  string `gorm:"column:place_name" json:"placeName"`
	UserName   string `gorm:"column:user_name" json:"userName"`
	Phone      string `gorm:"column:phone" json:"phone"`
	DeviceSn   string `gorm:"column:device_sn" json:"deviceSn"`
	CreateTime string `gorm:"column:create_time" json:"createTime"`
	UpdateTime string `gorm:"column:update_time" json:"updateTime"`
}

// ServiceAutomateReplenishDataListRes 补货服务数据列表
type ServiceAutomateReplenishDataListRes struct {
	Num          int    `gorm:"column:num" json:"num"`            // 通知数量
	ReplenishNum int    `gorm:"column:r_num" json:"replenishNum"` // 已补货数量
	NotNum       int    `gorm:"column:n_num" json:"notNum"`       // 未补货数量
	UserId       int    `gorm:"column:user_id" json:"userId"`
	PlaceId      int    `gorm:"column:place_id" json:"placeId"`
	PlaceName    string `gorm:"column:place_name" json:"placeName"`
	UserName     string `gorm:"column:user_name" json:"userName"`
	Phone        string `gorm:"column:phone" json:"phone"`
}

// NotificationListRes 通知服务列表查询
type NotificationListRes struct {
	placemodel.PlacesServiceNotification
	Name      string `gorm:"column:name" json:"name"`
	GoodsName string `gorm:"column:goods_name" json:"goodsName"`
	GoodsId   int    `gorm:"column:goods_id" json:"goodsId"`
	CommentId int    `gorm:"column:comment_id" json:"commentId"`
}

// NotificationCommentListRes 通知服务列表查询
type NotificationCommentListRes struct {
	NotificationListRes
	CommentId     int    `gorm:"column:c_id" json:"commentId"`
	GoodsId       int    `gorm:"column:goods_id" json:"goodsId"`
	GoodsOrderId  int    `gorm:"column:goods_order_id" json:"goodsOrderId"`
	GoodsType     uint8  `gorm:"column:goods_type" json:"goodsType"`
	GrantStatus   uint8  `gorm:"column:grant_status" json:"grantStatus"`
	CommentStatus uint8  `gorm:"column:c_status" json:"commentStatus"`
	ImgList       string `gorm:"column:img_list" json:"imgList"`
	AppName       string `gorm:"column:app_name" json:"appName"`
	ThirdOrder    string `gorm:"column:third_order" json:"thirdOrder"`
}

// NotificationRoomListRes 通知服务列表查询
type NotificationRoomListRes struct {
	NotificationListRes
	PayType     uint8  `gorm:"column:pay_type" json:"payType"`
	OrderStatus uint8  `gorm:"column:order_status" json:"orderStatus"`
	DayLen      int    `gorm:"column:day_len" json:"dayLen"`
	AllAmount   int64  `gorm:"column:all_amount" json:"allAmount"`
	TradeNo     string `gorm:"column:trade_no" json:"tradeNo"`
}

// NotificationGoodsListRes 通知服务列表查询
type NotificationGoodsListRes struct {
	NotificationListRes
	OrderStatus uint8  `gorm:"column:-" json:"orderStatus"`
	GoodsNum    int    `gorm:"column:goods_num" json:"goodsNum"`
	AllAmount   int64  `gorm:"column:all_amount" json:"allAmount"`
	TradeNo     string `gorm:"column:trade_no" json:"tradeNo"`
}

type NotificationStatusInfoRes struct {
	Pending  int `gorm:"column:pending" json:"pending"`
	Progress int `gorm:"column:progress" json:"progress"`
	Done     int `gorm:"column:done" json:"done"`
	Cancel   int `gorm:"column:cancel" json:"cancel"`
}

type NotificationInfoRes struct {
	Sweep       int `gorm:"column:sweep" json:"sweep"`
	Daily       int `gorm:"column:daily" json:"daily"`
	Maintain    int `gorm:"column:maintain" json:"maintain"`
	ToCall      int `gorm:"column:to_call" json:"toCall"`
	Continues   int `gorm:"column:continues" json:"continues"`
	Invoice     int `gorm:"column:invoice" json:"invoice"`
	CheckOut    int `gorm:"column:check_out" json:"checkOut"`
	Comment     int `gorm:"column:comment" json:"comment"`
	Supermarket int `gorm:"column:supermarket" json:"supermarket"`
	Wake        int `gorm:"column:wake" json:"wake"`
}

// StewardDeviceListReq 查询设备
type StewardDeviceListReq struct {
	BaseListReq
	LoginUserId int `json:"loginUserId" form:"loginUserId"`
	PlaceId     int `json:"placeId" form:"placeId"`
	IsAdmin     uint8
	PlaceName   string `json:"placeName" form:"placeName"`
	TypeName    string `json:"typeName" form:"typeName"`
	RoomType    uint8  `json:"roomType" form:"roomType"`
	RoomStatus  uint8  `json:"roomStatus" form:"roomStatus"`
	RoomName    string `json:"roomName" form:"roomName"`
	DeviceSn    string `json:"deviceSn" form:"deviceSn"`
	ParentId    int
}

// StewardDeviceListRes 设备列表查询
type StewardDeviceListRes struct {
	devices.DeviceModel
	Room        string `gorm:"column:room" json:"room"`
	ServiceCall string `gorm:"column:service_call" json:"serviceCall"`

	Status          uint8  `gorm:"column:status" json:"status"`
	TypeId          int    `gorm:"column:type_id" json:"typeId"`
	TypeName        string `gorm:"column:type_name" json:"typeName"`
	WifiName        string `gorm:"column:wifi_name" json:"wifiName"`
	WifiPassword    string `gorm:"column:wifi_password" json:"wifiPassword"`
	Price           int    `gorm:"column:price" json:"price"`                      // 房间价格
	DiscountsAmount int    `gorm:"column:discounts_amount" json:"discountsAmount"` // 优惠金额
}

// GetDeviceRoomListReq 设备房间列表
type GetDeviceRoomListReq struct {
	PlaceId int `json:"placeId"`

	LoginUserId int
}

type GetPlaceRoomListReq struct {
	BaseListReq
	PlaceId     int    `json:"placeId"`
	DeviceSn    string `json:"deviceSn"`
	Room        string `json:"room"`
	LoginUserId int
}

type GetDeviceRoomListRes struct {
	Id       int    `json:"id" form:"id"`
	Room     string `gorm:"column:room" json:"room"`
	DeviceSn string `gorm:"column:device_sn" json:"deviceSn"`
	PlaceId  int    `gorm:"column:place_id" json:"placeId"`

	WifiName     string `gorm:"column:wifi_name" json:"wifiName"`
	WifiPassword string `gorm:"column:wifi_password" json:"wifiPassword"`
}

// BindDeviceAndRoomReq 设备/房间绑定
type BindDeviceAndRoomReq struct {
	PlaceId   int    `json:"placeId"`
	PlaceName string `json:"placeName"`
	DeviceSn  string `json:"deviceSn"`
	Room      string `json:"room"`

	LoginUserId int
}

// SetStewardDeviceReq 设备绑定
type SetStewardDeviceReq struct {
	Id          int    `json:"id" json:"id"`
	PlaceId     int    `json:"placeId" json:"placeId"`
	LoginUserId int    `json:"loginUserId" form:"loginUserId"`
	DeviceSn    string `json:"deviceSn" json:"deviceSn"`
	Room        string `json:"room" json:"room"`
	ServiceCall string `json:"serviceCall" json:"serviceCall"`

	Status       uint8  `json:"status" json:"status"`
	TypeId       int    `json:"typeId" json:"typeId"`
	WifiSync     uint8  `json:"wifiSync" json:"wifiSync"`
	TypeName     string `json:"type_name" json:"typeName"`
	WifiName     string `json:"wifiName" json:"wifiName"`
	WifiPassword string `json:"wifiPassword" json:"wifiPassword"`
}

// GetStewardPlaceListReq 查询门店
type GetStewardPlaceListReq struct {
	BaseListReq
	LoginUserId int `json:"loginUserId" form:"loginUserId"`
	IsAdmin     uint8
	PlaceId     int    `json:"placeId" form:"placeId"`
	PlaceName   string `json:"placeName" form:"placeName"`
	IsSteward   uint8  `json:"isSteward" form:"isSteward"`
	ParentId    int
	ProjectKey  string `json:"projectKey" form:"projectKey"`
}

type GetStewardSearchPlaceListRes struct {
	Id        int    `gorm:"column:id" json:"id"`
	PlaceName string `gorm:"column:place_name" json:"placeName"`
}

type GetStewardPlaceListRes struct {
	placemodel.PlaceModel
	StaffNum        int    `gorm:"column:staff_num" json:"staffNum"`
	StaffOnlineNum  int    `gorm:"column:staff_online_num" json:"staffOnlineNum"`
	InformationType uint8  `gorm:"column:information_type" json:"informationType"`
	Config          string `gorm:"column:config" json:"config"`
}

// SetStewardPlaceReq 设置门店
type SetStewardPlaceReq struct {
	LoginUserId int    `json:"loginUserId" form:"loginUserId"`
	PlaceId     int    `json:"placeId" form:"placeId"`
	IsSteward   uint8  `json:"isSteward" form:"isSteward"`
	PlaceName   string `json:"placeName" form:"placeName"`
	ServiceCall string `json:"serviceCall" json:"serviceCall"`
}

// SetStewardPlaceStaffReq 设置门店员工
type SetStewardPlaceStaffReq struct {
	StaffIds    []int `json:"staffIds" form:"staffIds"`
	LoginUserId int   `json:"loginUserId" form:"loginUserId"`
	PlaceId     int   `json:"placeId" form:"placeId"`
	Ip          string
}

type SetStewardWorkforceStaffReq struct {
	StaffId         int    `json:"staffId" form:"staffId"`
	LoginUserId     int    `json:"loginUserId" form:"loginUserId"`
	WorkforceConfig string `json:"workforceConfig" form:"workforceConfig"`
	Ip              string
}

// StewardGetDetailsReq 服务详情
type StewardGetDetailsReq struct {
	LoginUserId    int `json:"loginUserId" form:"loginUserId"`
	NotificationId int `json:"notificationId" form:"notificationId"`
}

// StewardSetDataReq StewardSetData
type StewardSetDataReq struct {
	LoginUserId    int    `json:"loginUserId" form:"loginUserId"`
	NotificationId int    `json:"notificationId" form:"notificationId"`
	Status         int    `json:"status" form:"status"`
	ServiceMessage string `json:"serviceMessage" form:"serviceMessage"`
	StaffPhone     string `json:"staffPhone" form:"staffPhone"`

	CommentId      int    `json:"commentId" form:"commentId"`
	CommentStatus  uint8  `json:"commentStatus" form:"commentStatus"`
	CommentMessage string `json:"commentMessage" form:"commentMessage"`
	GoodsOrderId   int    `json:"goodsOrderId" form:"goodsOrderId"`

	GoodsTradeNo     string `json:"goodsTradeNo" form:"goodsTradeNo"`
	GoodsOrderStatus uint8  `json:"goodsOrderStatus" form:"goodsOrderStatus"` // 4-配送 6-撤销

	RoomTradeNo     string `json:"roomTradeNo" form:"roomTradeNo"`
	RoomOrderStatus uint8  `json:"roomOrderStatus" form:"roomOrderStatus"` // 5-入住 6-撤销

	IsAdmin  uint8
	ParentId int
}

type StewardStaffUserInfoRes struct {
	usersteward.StUserStaff
	//RoleName string `gorm:"column:role_name" json:"roleName"`
}

type StewardPlaceInformationConfigReq struct {
	LoginUserId int                                               `json:"loginUserId" form:"loginUserId"`
	List        []placemodel.PlacesInformationConfig `json:"list" form:"list"`
	PlaceId     int                                               `json:"placeId" form:"placeId"`
}

type NotificationDetailsRes struct {
	placemodel.PlacesServiceNotification
	Name      string `gorm:"column:name" json:"name"`          // 用户名
	Phone     string `gorm:"column:phone" json:"phone"`        // 手机号
	RolesName string `gorm:"column:role_name" json:"roleName"` // 部门名
}

type NotificationRoomDetailsRes struct {
	placemodel.PlacesServiceNotification
	Name      string `gorm:"column:name" json:"name"`            // 用户名
	Phone     string `gorm:"column:phone" json:"phone"`          // 手机号
	RolesName string `gorm:"column:roles_name" json:"rolesName"` // 部门名

	Amount          int    `gorm:"column:amount" json:"amount"`
	DayLen          int    `gorm:"column:day_len" json:"dayLen"`
	TradeNo         string `gorm:"column:trade_no" json:"tradeNo"`
	RoomOrderStatus uint8  `gorm:"column:room_order_status" json:"roomOrderStatus"`
}

// SetStewardPlaceSetServiceConfigReq 设置门店员工
type SetStewardPlaceSetServiceConfigReq struct {
	LoginUserId int    `json:"loginUserId" form:"loginUserId"`
	PlaceId     int    `json:"placeId" form:"placeId"`
	Config      string `json:"config" form:"config"`
	Ip          string
}

// StewardAddRoomCouponReq 设置门店员工
type StewardAddRoomCouponReq struct {
	LoginUserId int    `json:"loginUserId" form:"loginUserId"`
	PlaceId     int    `json:"placeId" form:"placeId"`
	Amount      int    `json:"amount" form:"amount"`
	TimeOff     uint8  `json:"timeOff" form:"timeOff"`
	DeviceSn    string `json:"deviceSn" form:"deviceSn"`
	PlaceRoom   string `json:"placeRoom" form:"placeRoom"`
	Ip          string
}

type SetGoodsOrderStatusReq struct {
	TradeNo        string `json:"tradeNo"`        // 订单标识
	RejectMessage  string `json:"serviceMessage"` // 服务备注
	NotificationId int    `json:"notificationId"` // 通知ID
	Status         uint8  `json:"status"`         // 订单状态 4-发货 6-撤销
	IsAdmin        uint8
	LoginUserId    int
	ParentId       int
}

type GoodsOrderDetailsReq struct {
	BaseListReq
	TradeNo     string `json:"tradeNo"`
	IsAdmin     uint8
	LoginUserId int
	ParentId    int
}

type GoodsOrderListReq struct {
	BaseListReq
	Id          int    `json:"id" form:"id"`
	MemberPhone string `json:"memberPhone" form:"memberPhone"` // 会员手机号
	TradeNo     string `json:"tradeNo" form:"tradeNo"`         // 订单编号
	UserId      int    `json:"userId" form:"userId"`           // 商户ID
	PlaceId     int    `json:"placeId" form:"placeId"`         // 门店ID
	Status      uint8  `json:"status" form:"status"`           // 订单状态 1-待支付 2-已支付 3-待发货 4-已发货 5-取消订单
	PayType     uint8  `json:"payType" form:"payType"`         // 支付类型 1-商家兑换 2-微信支付 3-支付宝支付
	GoodsName   string `json:"name" form:"name"`               // 商品名
	Room        string `json:"room" form:"room"`
	IsAdmin     uint8
	LoginUserId int
	ParentId    int
}

type GoodsListOrderRes struct {
	MemberId       int    `gorm:"column:member_id" json:"memberId"`         // 会员ID
	PlaceId        int    `gorm:"column:place_id" json:"placeId"`           // 网点ID
	PlaceName      string `gorm:"column:place_name" json:"placeName"`       // 网点名称
	PlaceAddress   string `gorm:"column:place_address" json:"placeAddress"` // 网点地址
	Address        string `gorm:"column:address" json:"address"`            // 网点地址
	AddressId      int    `gorm:"column:address_id" json:"addressId"`       // 收货地址ID
	Status         uint8  `gorm:"column:status" json:"status"`              // 订单状态 1-待支付 2-已支付 3-待发货 4-已发货
	PayType        uint8  `gorm:"column:pay_type" json:"payType"`           // 支付类型 1-商家兑换 2-微信支付 3-支付宝支付
	Message        string `gorm:"column:message" json:"message"`
	ThirdTradeNo   string `gorm:"column:third_trade_no" json:"ThirdTradeNo"`    // 第三方 订单编号
	TradeNo        string `gorm:"column:trade_no" json:"tradeNo"`               // 订单编号
	DeviceSn       string `gorm:"column:device_sn" json:"deviceSn"`             // 设备
	NotificationId int    `gorm:"column:notification_id" json:"notificationId"` // 通知ID
	UserId         int    `gorm:"column:user_id" json:"userId"`                 // 商户ID
	CreateTime     string `gorm:"column:create_time" json:"createTime"`
	UpdateTime     string `gorm:"column:update_time" json:"updateTime"`
	PayTime        string `gorm:"column:pay_time" json:"payTime"`

	GoodsNum  int   `gorm:"column:goods_num" json:"goodsNum"`
	AllAmount int64 `gorm:"column:all_amount" json:"allAmount"`
}

type GoodsListReq struct {
	BaseListReq
	Id         int    `json:"id" form:"id"`
	MemberId   int    `json:"memberId" form:"memberId"`     // 会员ID
	UserId     int    `json:"userId" form:"userId"`         // 商户ID
	PlaceId    int    `json:"placeId" form:"placeId"`       // 门店ID
	Status     uint8  `json:"status" form:"status"`         // 状态 1-未上架 2-已上架 3-已下架 4-已删除
	Type       uint8  `json:"type" form:"type"`             // 类型 1-线充优惠券 2-虚拟商品 3-实物商品
	CreateTime string `json:"createTime" form:"createTime"` // 创建时间
	Name       string `json:"name" form:"name"`             // 商品名
	BuyType    uint8  `json:"buy_type" form:"buyType"`
	ParentId   int
}

type GoodsListRes struct {
	goods.Goods
	PlaceName string `gorm:"column:place_name" json:"placeName"` //收货地址
}

type GoodsDetailsRes struct {
	goods.Goods
	MemberId int `gorm:"column:member_id" json:"memberId"`
}

type GetH5StewardRoomOrderDetailsReq struct {
	StaffId        int
	NotificationId int `json:"notificationId"`
}
type GetH5StewardRoomOrderDetailsRes struct {
	Id          int    `gorm:"column:id" json:"id"`
	Amount      int    `gorm:"column:amount" json:"amount"`
	DayLen      int    `gorm:"column:day_len" json:"dayLen"`
	PayType     uint8  `gorm:"column:pay_type" json:"payType"`
	TradeNo     string `gorm:"column:trade_no" json:"tradeNo"`
	MemberName  string `gorm:"column:member_name" json:"memberName"`   // 续住会员昵称
	MemberPhone string `gorm:"column:member_phone" json:"memberPhone"` // 续住会员手机
}

type GetH5StewardGoodsOrderDetailsReq struct {
	StaffId        int
	NotificationId int `json:"notificationId"`
}

type CommentInfoReq struct {
	Id             int    `json:"id" form:"id"`
	MemberId       int    `json:"memberId" form:"memberId"` //会员ID
	Address        string `json:"address" form:"address"`   //收货地址
	GoodsId        int    `json:"goodsId" form:"goodsId"`   //商品ID
	PlaceId        int    `json:"placeId" form:"placeId"`
	NotificationId int    `json:"notificationId" form:"notificationId"`
}

//评论详情返回参数
type CommentDetailsInfoRes struct {
	Id             int    `gorm:"column:id" json:"id"`                          // 评论ID
	Address        string `gorm:"column:address" json:"address"`                //收货地址
	Phone          string `gorm:"column:phone" json:"phone"`                    // 手机号
	Name           string `gorm:"column:name" json:"name"`                      //联系人
	GoodsId        int    `gorm:"column:goods_id" json:"goodsId"`               //商品ID
	GoodsOrderId   int    `gorm:"column:goods_order_id" json:"goodsOrderId"`    //赠送商品订单ID
	Status         uint8  `gorm:"column:status" json:"status"`                  //订单状态 1-待支付 2-已支付 3-待发货 4-已发货
	Type           uint8  `gorm:"column:type" json:"type"`                      //类型 1-线充优惠券 2-虚拟商品 3-实物商品
	Price          int    `gorm:"column:price" json:"price"`                    //价格 单位：分
	DiscountAmount int    `gorm:"column:discount_amount" json:"discountAmount"` //优惠金额 单位：分
	CouponId       int    `gorm:"column:coupon_id" json:"couponId"`
	Icon           string `gorm:"column:icon" json:"icon"`                       //商品图标
	ImgList        string `gorm:"column:img_list" json:"imgList"`                //商品图集
	BrandName      string `gorm:"column:brand_name" json:"brandName"`            //品牌名称
	GoodsName      string `gorm:"column:goods_name" json:"goodsName"`            //商品名称
	PlaceName      string `gorm:"column:place_name" json:"placeName"`            //酒店名称
	PlaceAddress   string `gorm:"column:place_address" json:"placeAddress"`      //酒店地址
	Province       string `gorm:"column:province" json:"-"`                      // 用户所在省份
	City           string `gorm:"column:city" json:"-"`                          // 用户所在城市
	County         string `gorm:"column:country" json:"-"`                       // 用户所在县
	CommentImgList string `gorm:"column:comment_img_list" json:"commentImgList"` // 评论图集
	Message        string `gorm:"column:message" json:"message"`                 // 备注
	RejectMessage  string `gorm:"column:reject_message" json:"rejectMessage"`    // 审核失败原因
	GoodsType      uint8  `gorm:"column:goods_type" json:"goodsType"`
	GrantStatus    uint8  `gorm:"column:grant_status" json:"grantStatus"`
}

type ThirdCommentSubmitReq struct {
	Id             int      `gorm:"column:id" json:"id"`                          // ID
	MemberId       int      `gorm:"column:member_id" json:"memberId"`             // 会员ID
	PlaceId        int      `gorm:"column:place_id" json:"placeId"`               // 网点ID
	GoodsId        int      `gorm:"column:goods_id" json:"goodsId"`               // 商品ID
	GoodsOrderId   int      `gorm:"column:goods_order_id" json:"goodsOrderId"`    // 商品订单ID
	NotificationId int      `gorm:"column:notification_id" json:"notificationId"` // 消息通知ID
	PlaceName      string   `gorm:"column:place_name" json:"placeName"`           // 网点名称
	ImgList        string   `gorm:"column:img_list" json:"imgList"`               // 评论图集
	AppName        string   `gorm:"column:app_name" json:"appName"`               // 第三方应用名称 如：美团、携程,
	ThirdOrder     string   `gorm:"column:third_order" json:"thirdOrder"`         // 第三方订单号
	Status         uint8    `gorm:"column:status" json:"status"`                  // 状态 1-审核中 2-审核通过 3-审核驳回 4-删除
	Message        string   `gorm:"column:message" json:"message"`                // 备注
	ImgStrArray    []string `gorm:"-" json:"imgStrArray"`
	AddressId      int      `gorm:"-" json:"addressId"`
	PlaceRoom      string   `gorm:"-" json:"placeRoom"`
	DeviceSn       string   `gorm:"-" json:"deviceSn"`
	Phone          string   `gorm:"-" json:"phone"`
	TradeNo        string   `gorm:"-" json:"-"`
}

// RoomTypeListReq 房间类型
type RoomTypeListReq struct {
	BaseListReq
	Id              int    `json:"id" form:"id"`
	PlaceId         int    `json:"placeId" form:"placeId"`
	PlaceName       string `json:"placeName" form:"placeName"`
	TypeName        string `json:"typeName" form:"typeName"`
	Status          uint8  `json:"status" form:"status"`
	LoginUserId     int
	IsAdmin         uint8
	NotPagingStatus uint8
}

// RoomTypeListRes 房间订单
type RoomTypeListRes struct {
	room.Type
	PlaceName string `gorm:"column:place_name" json:"placeName"`
	UserId    int    `gorm:"column:user_id" json:"userId"`
	UserName  string `gorm:"column:user_name" json:"userName"`
}

// RoomOrderListReq 房间订单
type RoomOrderListReq struct {
	BaseListReq
	room.Order
	Room        string `gorm:"column:room" json:"room"`
	LoginUserId int
	ParentId    int
	IsAdmin     uint8
}

type RoomOrderListRes struct {
	room.Order
	Room string `gorm:"column:room" json:"room"`
}

type SetRoomOrderStatusReq struct {
	TradeNo        string `json:"tradeNo"`        // 订单标识
	RejectMessage  string `json:"serviceMessage"` // 服务备注
	NotificationId int    `json:"notificationId"` // 通知ID
	Status         uint8  `json:"status"`         // 订单状态 5-订单完成 6-已撤销
	IsAdmin        uint8
	LoginUserId    int
	ParentId       int
}

type SetBatchDeviceRoomReq struct {
	List        []*SetBatchDeviceRoomParamsReq `json:"list"`
	PlaceId     int                            `json:"placeId"`
	IsAdmin     uint8
	LoginUserId int
}
type SetBatchDeviceRoomParamsReq struct {
	Room         string `json:"room"`
	DeviceSn     string `json:"deviceSn"`
	TypeId       int    `json:"typeId"`       // 房间类型(可选)
	WifiName     string `json:"wifiName"`     // Wifi名称(可选)
	WifiPassword string `json:"wifiPassword"` // Wifi密码(可选)
}
type GetBatchDeviceRoomDb struct {
	Num      int    `json:"num" form:"num"`
	UserId   int    `json:"user_id" form:"userId"`
	PlaceId  int    `json:"place_id" form:"placeId"`
	DeviceSn string `json:"device_sn" form:"deviceSn"`
}

// BulletinListReq 查询公告列表
type BulletinListReq struct {
	BaseListReq
	Id        int    `json:"id" form:"id"`
	PlaceId   int    `json:"placeId" form:"placeId"`
	PlaceName int    `json:"placeName" form:"placeName"`
	Title     string `json:"title" form:"title"`
	Status    uint8  `json:"status" form:"status"`

	IsAdmin     uint8
	LoginUserId int
	ParentId    int
}

type BulletinListRes struct {
	bulletin.Bulletin
	PlaceName string `gorm:"column:place_name" json:"placeName"` //酒店名称
}

type DbBulletinReq struct {
	Db          *bulletin.UpdateDb
	LoginUserId int   `gorm:"column:-" json:"-"`
	IsAdmin     uint8 `gorm:"column:-" json:"-"`
	ParentId    int   `gorm:"column:-" json:"-"`
}

// GetPlaceReportsListReq BulletinListReq 查询门店投诉建议列表
type GetPlaceReportsListReq struct {
	BaseListReq
	Id       int    `json:"id" form:"id"`
	PlaceId  int    `json:"placeId" form:"placeId"`
	Status   uint8  `json:"status" form:"status"`
	DeviceSn string `json:"deviceSn" form:"deviceSn"`

	IsAdmin     uint8
	LoginUserId int
}

type GetPlaceReportsDetailsReq struct {
	reports.PlaceReportsModel
	NickName string `gorm:"column:nick_name" json:"nickName"` // 昵称
	Phone    string `gorm:"column:phone" json:"phone"`        // 用户手机号码
}

// GetCouponListReq 查询优惠券-列表
type GetCouponListReq struct {
	BaseListReq
	Id        int    `json:"id" form:"id"`
	PlaceId   int    `json:"placeId" form:"placeId"`
	Status    uint8  `json:"status" form:"status"`
	Type      uint8  `json:"type" form:"type"`
	OrderType uint8  `json:"orderType" form:"orderType"`
	Name      string `json:"name" form:"name"`
	IsValid   bool   `json:"isValid" form:"isValid"`

	IsAdmin     uint8
	LoginUserId int
}

// GetCouponListRes 查询优惠券-列表
type GetCouponListRes struct {
	coupon.OrderCoupon
	PlaceName string `gorm:"column:place_name" json:"placeName"`
}

// DbOrderCouponReq 优惠券
type DbOrderCouponReq struct {
	DB *coupon.OrderCouponDb

	IsAdmin     uint8
	LoginUserId int
}

// GetOrderCouponRecordListReq 查询优惠券记录-列表
type GetOrderCouponRecordListReq struct {
	BaseListReq
	Id        int    `json:"id" form:"id"`
	PlaceId   int    `json:"placeId" form:"placeId"`
	Status    uint8  `json:"status" form:"status"`
	Type      uint8  `json:"type" form:"type"`
	OrderType uint8  `json:"orderType" form:"orderType"`
	Name      string `json:"name" form:"name"`

	IsAdmin     uint8
	LoginUserId int
}

type GetOrderCouponRecordListRes struct {
	coupon.OrderCouponRecord
	PlaceName string `gorm:"column:place_name" json:"placeName"`
}

// GrantOrderCouponReq 优惠券-发放
type GrantOrderCouponReq struct {
	IsAll        uint8  `json:"isAll" form:"isAll"`               // 1-全部发放
	CouponId     int    `json:"couponId" form:"couponId"`         // 优惠券ID
	MemberIds    []int  `json:"memberIds" form:"memberIds"`       // 指定会员发放
	ProjectLabel string `json:"projectLabel" form:"projectLabel"` // 项目类型发放
	DeviceSn     string `json:"deviceSn" form:"deviceSn"`         // 设备

	IsAdmin     uint8
	LoginUserId int
}

type WxPlacesServiceMaterialsListReq struct {
	PlaceId int   `json:"placeId" form:"placeId"`
	Type    uint8 `json:"type" form:"type"`
}

// PlacesServiceMaterialsListReq 查询物品-列表
type PlacesServiceMaterialsListReq struct {
	BaseListReq
	Id      int    `json:"id" form:"id"`
	PlaceId int    `json:"placeId" form:"placeId"`
	Type    uint8  `json:"type" form:"type"`
	Status  uint8  `json:"status" form:"status"`
	Name    string `json:"name" form:"name"`

	IsAdmin     uint8
	LoginUserId int
}

// PlacesServiceMaterialsListRes 查询物品-列表
type PlacesServiceMaterialsListRes struct {
	placemodel.PlacesServiceMaterials
	PlaceName string `gorm:"column:place_name" json:"placeName"` //设备编号
}

// DbPlacesServiceMaterialsListReq 物品配置
type DbPlacesServiceMaterialsListReq struct {
	DB *placemodel.PlacesServiceMaterialsDb

	IsAdmin     uint8
	LoginUserId int
}

type StewardStatisticsReq struct {
	Status    uint8  `json:"status" form:"status"`
	PlaceId   int    `json:"placeId" form:"placeId"`
	StartTime string `json:"startTime" form:"startTime"`
	EndTime   string `json:"endTime" form:"endTime"`
	Type      uint8  `json:"type" form:"type"`

	IsAdmin     uint8
	LoginUserId int
	ParentId    int
}
type StewardStatisticsRes struct {
	Type uint8  `gorm:"column:type" json:"type"`
	Num  int    `gorm:"column:num" json:"num"`
	Info string `gorm:"column:info" json:"-"`
}
type StewardStatisticsShopRes struct {
	Name    string `gorm:"column:name" json:"name"`
	Num     int    `gorm:"column:num" json:"num"`
	GoodsId int    `gorm:"column:goods_id" json:"goodsId"`
}
type StewardStatisticsNameRes struct {
	Name string `gorm:"column:name" json:"name"`
	Num  int    `gorm:"column:num" json:"num"`
}
type StewardStatisticsDaysRes struct {
	Type uint8  `gorm:"column:type" json:"type"`
	Day  string `gorm:"column:day" json:"day"`
	Num  int    `gorm:"column:num" json:"num"`
}

type StewardAppGetServiceNumReq struct {
	Status       uint8 `gorm:"column:status" json:"status"`
	PlaceId      int   `gorm:"column:placeId" json:"placeId"`
	MessageTypes []int
	LoginUserId  int
}
type StewardAppGetServiceNumRes struct {
	Type uint8 `gorm:"column:type" json:"type"`
	Num  int   `gorm:"column:num" json:"num"`
}
type StewardAppGetServiceTotalRes struct {
	Pending  int `gorm:"column:pending" json:"pending"`   // 待处理
	Progress int `gorm:"column:progress" json:"progress"` // 处理中
	Finished int `gorm:"column:finished" json:"finished"` // 已完成
}

type GetStaffUserOpenidByIdRes struct {
	Id            int    `gorm:"column:id" json:"id"`
	TencentOpenid string `gorm:"column:tencent_openid" json:"tencentOpenid"`
	UpdateTime    string `gorm:"column:update_time" json:"updateTime"`
}

type StewardAppGetPlacesRes struct {
	OnLineStatus uint8  `gorm:"column:status" json:"onLineStatus"`
	PlaceId      int    `gorm:"column:place_id" json:"placeId"`
	PlaceName    string `gorm:"column:place_name" json:"placeName"`
}

// SetUserOnlineStatusReq 设置员工在线状态
type SetUserOnlineStatusReq struct {
	PlaceId     int `gorm:"column:placeId" json:"placeId"`
	Status      int `gorm:"column:status" json:"status"`
	LoginUserId int
}

// AppSetUserInfoReq 设置员工信息
type AppSetUserInfoReq struct {
	Avatar        string `gorm:"column:avatar" json:"avatar"`
	Name          string `gorm:"column:name" json:"name"`
	TencentOpenid string `gorm:"column:tencent_openid" json:"tencentOpenid"`
	UpdateTime    string `gorm:"column:update_time" json:"updateTime"`
	LoginUserId   int
}

type AppGetPlaceRoomListReq struct {
	Status      uint8  `gorm:"column:status" json:"status"`
	PlaceId     int    `gorm:"column:placeId" json:"placeId"`
	Room        string `gorm:"column:room" json:"room"`
	LoginUserId int
}
type AppGetPlaceRoomListRes struct {
	Id     int    `gorm:"column:id" json:"id"`
	Status uint8  `gorm:"column:status" json:"status"`
	Room   string `gorm:"column:room" json:"room"`

	TypeId          int    `gorm:"column:type_id" json:"typeId"`
	Price           int    `gorm:"column:price" json:"price"`
	DiscountsAmount int    `gorm:"column:discounts_amount" json:"discountsAmount"`
	TypeName        string `gorm:"column:type_name" json:"typeName"`
}

type AppSmsCodeReq struct {
	Phone       string `json:"phone" form:"phone"`
	Code        string `json:"code" form:"code"`
	LoginUserId int
}

type AppGetStaffInformMessageListReq struct {
	BaseListReq
	Ids         []int `json:"ids" form:"ids"`
	PlaceId     int   `json:"placeId" form:"placeId"`
	Status      uint8 `json:"status" form:"status"`
	Type        uint8 `json:"type" form:"type"`
	LoginUserId int
}

type AppSetPlaceDeviceBindingReq struct {
	PlaceId     int    `json:"placeId" form:"placeId"`
	Room        string `json:"room" form:"room"`
	DeviceSn    string `json:"deviceSn" form:"deviceSn"`
	LoginUserId int
}

type ScreenStatisticalDayInfoRes struct {
	PayMoney int64 `gorm:"column:pay_money" json:"payMoney"`
	OrderNum int64 `gorm:"column:order_num" json:"orderNum"`
}
type ScreenGetOrderListReq struct {
	Id int `json:"id" form:"id"`
}
type ScreenGetOrderListRes struct {
	Id         int64  `gorm:"column:id" json:"id"`
	Money      int64  `gorm:"column:money" json:"money"`
	PlaceName  string `gorm:"column:place_name" json:"placeName"`
	CreateTime string `gorm:"column:create_time" json:"createTime"`
}
type ScreenGetPayMonthChartReq struct {
	IsContinue uint8 `json:"isContinue"` // 是否连续查询
}
type ScreenGetPayMonthChartRes struct {
	Time  string `gorm:"column:t" json:"time"`
	Money string `gorm:"column:money" json:"money"`
}

type ScreenGetPlacesGeographyRes struct {
	City string `gorm:"column:r_city" json:"city"`
	Lat  string `gorm:"column:lat" json:"lat"`
	Lng  string `gorm:"column:lng" json:"lng"`
	Num  int    `gorm:"column:num" json:"num"`
}
type ScreenGetPlacesTypeRatioRes struct {
	KaName string `gorm:"column:ka_name" json:"kaName"`
	Num    int    `gorm:"column:num" json:"num"`
}
type ScreenGetGetPlacesInfoRes struct {
	DeviceNum int `gorm:"column:d_num" json:"deviceNum"`
	PlaceNum  int `gorm:"column:p_num" json:"placeNum"`
}

type GetAutomateGoodsListReq struct {
	BaseListReq
	Id           int    `json:"id" form:"id"`
	PlaceId      int    `json:"placeId" form:"placeId"`
	Type         uint8  `json:"type" form:"type"`
	Status       uint8  `json:"status" form:"status"`
	Name         string `json:"name" form:"name"`
	DeviceSn     string `json:"deviceSn" form:"deviceSn"`
	WarningOrder uint8  `json:"warningOrder" form:"warningOrder"`

	IsAdmin     uint8
	LoginUserId int
}

type GetAutomateGoodsListRes struct {
	automate.GoodsModel
	PlaceName string `gorm:"column:place_name" json:"placeName"`
}

type InitGoodsReq struct {
	Db *automate.GoodsDb

	IsAdmin     uint8
	LoginUserId int
}

type GetAutomateGoodsBindListReq struct {
	BaseListReq
	Id          int    `json:"id" form:"id"`
	PlaceId     int    `json:"placeId" form:"placeId"`
	RoutesId    uint8  `json:"routesId"`
	Type        uint8  `json:"type" form:"type"`
	GoodsStatus uint8  `json:"goodsStatus" form:"goodsStatus"`
	Status      uint8  `json:"status" form:"status"`
	Name        string `json:"name" form:"name"`
	DeviceSn    string `json:"deviceSn" form:"deviceSn"`

	IsAdmin     uint8
	LoginUserId int
}
type GetAutomateGoodsBindListRes struct {
	automate.GoodsBindModel
	UserId      int    `gorm:"column:user_id" json:"userId"`
	Price       int    `gorm:"column:price" json:"price"`
	Num         int    `gorm:"column:num" json:"num"`
	GoodsStatus uint8  `gorm:"column:goods_status" json:"goodsStatus"`
	Name        string `gorm:"column:name" json:"name"`
	Icon        string `gorm:"column:icon" json:"icon"`
	PlaceName   string `gorm:"column:place_name" json:"placeName"`
}
type InitGoodsBindReq struct {
	Db *automate.GoodsBindDb

	IsAdmin     uint8
	LoginUserId int
}

type InsertGoodsBindReq struct {
	DbList []*automate.GoodsBindDb

	IsAdmin     uint8
	LoginUserId int
}

type WxAutomateCreateGoodsOrderReq struct {
	Id       int    `json:"id" form:"id"`
	DeviceSn string `json:"deviceSn" form:"deviceSn"`

	MemberId int
}

type GetGoodsOrderInfoByIdRes struct {
	automate.OrderModel
	Room  string `gorm:"column:room" json:"room"`
	Phone string `gorm:"column:phone" json:"phone"`
}

type GetAutomateOrderListReq struct {
	BaseListReq
	Id       int    `json:"id" form:"id"`
	PlaceId  int    `json:"placeId" form:"placeId"`
	UserId   int    `json:"userId" form:"userId"`
	MemberId int    `json:"memberId" form:"memberId"`
	RoutesId uint8  `json:"routesId" form:"routesId"`
	PayType  uint8  `json:"pay_type" form:"payType"`
	Status   uint8  `json:"status" form:"status"`
	DeviceSn string `json:"deviceSn" form:"deviceSn"`
	TradeNo  string `json:"tradeNo" form:"tradeNo"`

	IsAdmin     uint8
	LoginUserId int
}

type GetAdminAutomateOrderWaitDividendsRes struct {
	automate.OrderUserRelevancyModel
	ParentId         int    `gorm:"column:parent_id" json:"parentId"`
	PlaceId          int    `gorm:"column:place_id" json:"placeId"`
	ProfitProportion int    `gorm:"column:sm_profit_proportion" json:"profitProportion"`
	Amount           int    `gorm:"column:amount" json:"amount"`
	IsDividends      uint8  `gorm:"column:is_dividends_sm" json:"isDividends"`
	IsAdmin          uint8  `gorm:"column:is_admin" json:"isAdmin"`
	PlaceName        string `gorm:"column:place_name" json:"placeName"`
	UserName         string `gorm:"column:user_name" json:"userName"`
	DeviceSn         string `gorm:"column:device_sn" json:"deviceSn"`
}

type GetAutomateDividendsListReq struct {
	BaseListReq
	TradeNo string `json:"tradeNo" form:"tradeNo"`

	IsAdmin     uint8
	LoginUserId int
}
type GetAutomateDividendsListRes struct {
	automate.DividendsLogModel
	OrderAmount int `gorm:"column:order_amount" json:"orderAmount"`
}

type SetBatchRoomReq struct {
	PlaceId   int          `json:"placeId"`
	RoomRange []*RoomRange `json:"list"`
	WifiPwd   string       `json:"wifiPwd"`
}

type RoomRange struct {
	Start int `json:"start"`
	End   int `json:"end"`
}

type GetAutomatePlaceGoodsNumListRes struct {
	ShipmentsNum int    `gorm:"column:shipments_num" json:"shipmentsNum"` // 出货数量
	InventoryNum int    `gorm:"column:inventory_num" json:"inventoryNum"` // 库存数量
	SellNum      int    `gorm:"column:sell_num" json:"sellNum"`           // 销售数量
	DeviceNum    int    `gorm:"column:device_num" json:"deviceNum"`       // 设备数量
	LoadNum      int    `gorm:"column:load_num" json:"loadNum"`           // 装载数量
	WarningNum   int    `gorm:"column:warning_num" json:"warningNum"`     // 预警数量
	PlaceId      int    `gorm:"column:place_id" json:"placeId"`
	GoodsId      int    `gorm:"column:automate_goods_id" json:"goodsId"`
	PlaceName    string `gorm:"column:place_name" json:"placeName"`
	GoodsName    string `gorm:"column:goods_name" json:"goodsName"`
}

type GetAutomatePlaceGoodsNumRes struct {
	Num       int    `gorm:"column:num" json:"num"`
	LoadNum   int    `gorm:"column:load_num" json:"loadNum"`
	PlaceId   int    `gorm:"column:place_id" json:"placeId"`
	GoodsId   int    `gorm:"column:automate_goods_id" json:"goodsId"`
	PlaceName string `gorm:"column:place_name" json:"placeName"`
	GoodsName string `gorm:"column:goods_name" json:"goodsName"`
}

type GetAutomatePlaceGoodsListRes struct {
	automate.GoodsModel
	WarningNum       int    `gorm:"column:warning_num" json:"warningNum"`
	AutomateGoodsId  int    `gorm:"column:automate_goods_id" json:"automateGoodsId"`
	PlaceGoodsStatus uint8  `gorm:"column:place_goods_status" json:"placeGoodsStatus"`
	PlaceName        string `gorm:"column:place_name" json:"placeName"`
}

type PlaceGoodsReq struct {
	Db *automate.PlaceGoodsBindDb

	IsAdmin     uint8
	LoginUserId int
}

type GetAutomateInventoryLogListListReq struct {
	BaseListReq
	PlaceId  int    `json:"placeId" form:"placeId"`
	UserName string `json:"userName" form:"userName"`

	IsAdmin     uint8
	LoginUserId int
}
type GetAutomateInventoryLogListListRes struct {
	automate.GoodsInventoryLogModel
	PlaceName string `gorm:"column:place_name" json:"placeName"`
	UserName  string `gorm:"column:user_name" json:"userName"`
}

type GetStaffAutomateOrdersDetailsReq struct {
	automate.OrderDb

	IsAdmin     uint8
	LoginUserId int
}
type GetStaffAutomateOrdersDetailsRes struct {
	automate.OrderDb
	BluetoothMac string `gorm:"column:bluetooth_mac" json:"bluetoothMac"`
}

type HandleUpdateAutomateGoodsBindStatusReq struct {
	Status         uint8  `json:"status"`
	RoutesId       uint8  `json:"routesId"`
	DeviceSn       string `json:"deviceSn"`
	NotificationId int    `json:"notificationId"`
	ServiceMessage string `json:"serviceMessage" form:"serviceMessage"`

	IsAdmin     uint8
	LoginUserId int
}

// GetBrandRelevancyConfigListReq 门店关联品牌配置
type GetBrandRelevancyConfigListReq struct {
	BaseListReq
	PlaceId     int    `json:"placeId" form:"placeId"`
	BrandId     int    `json:"brandId" form:"brandId"`
	BrandName   string `json:"brandName" form:"brandName"`
	LoginUserId int
	ParentId    int
	IsAdmin     uint8
}
type GetBrandRelevancyConfigListRes struct {
	placemodel.PlaceBrandRelevancyConfigModel
	PlaceName   string `gorm:"column:place_name" json:"placeName"`
	BrandName   string `gorm:"column:brand_name" json:"brandName"`
	ProjectName string `gorm:"column:project_name" json:"projectName"`
}

// GetBrandConfigListReq 查询品牌列表
type GetBrandConfigListReq struct {
	BaseListReq
	LoginUserId int
	ParentId    int
	IsAdmin     uint8
	BrandId     int    `json:"brandId" form:"brandId"`
	BrandName   string `json:"brandName" form:"brandName"`
}

type GetBrandConfigListRes struct {
	placemodel.BrandConfigDb
	ProjectName string `gorm:"column:project_name" json:"projectName"`
}

type CreateGppPlacePushDataReq struct {
	PlaceId      int    `gorm:"column:place_id" json:"placeId"`
	Month        string `gorm:"column:month" json:"month"`
	ProjectLabel string `gorm:"column:project_label" json:"projectLabel"`

	ParentId int
	IsAdmin  uint8
}

type GetPlacePushDataListReq struct {
	BaseListReq
	Status       uint8  `gorm:"column:status" json:"status"`
	PlaceId      int    `gorm:"column:place_id" json:"placeId"`
	Month        string `gorm:"column:month" json:"month"`
	ProjectLabel string `gorm:"column:project_label" json:"projectLabel"`

	ParentId int
	IsAdmin  uint8
}

type GetPlacePushDataListRes struct {
	placemodel.GppPlaceSettlementModel
	PlaceName string `gorm:"column:place_name" json:"placeName"`
}

type SendPlacePushDataReq struct {
	PlaceId      int    `gorm:"column:place_id" json:"placeId"`
	Month        string `gorm:"column:month" json:"month"`
	ProjectLabel string `gorm:"column:project_label" json:"projectLabel"`

	ParentId int
	IsAdmin  uint8
}
